package com.yangxd.system.service.impl;


import com.yangxd.system.entity.UserRole;
import com.yangxd.system.mapper.UserRoleMapper;
import com.yangxd.system.service.UserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户角色关联表 服务实现类
 * </p>
 *
 * @author yangxd
 * @since 2021-04-20
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService {

    /**
     * 根据id查询
     *
     * @param userId
     */
    @Override
    public List<UserRole> listByUserId(String userId) {
        return this.baseMapper.listByUserId(userId);
    }
}
